package Com.amit.Collection;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

import java.util.Set;

public class Lab10 {
	
	public static void main(String[] args) {
		
		HashMap map=new HashMap();
		map.put(1, "amit");
		map.put(2, "anil");
		map.put(3, "amit1");
		map.put("a", 23);
		
		Set set=map.entrySet();
		
		Iterator itr=set.iterator();
		
		while(itr.hasNext())
		{
			Map.Entry m=(Map.Entry) itr.next();
			System.out.println(m.getKey() +" "+m.getValue());
			
		}
		
		
	}

}
